package ${packageName};

@Table(name = "${tableName}")
public class ${className} {
    <%
    for (field in fields) {
        if (field.primaryKey) {
            println("    @Id");
        }
        //if (field.keyword) {
            println("    @Column(name = \"" + field.columnName + "\")");
        //}
        println("    private " + field.codeType + " " + field.codeName + "; // " + field.columnName);
        println();
    }
    for (field in fields) {
        println("    public void " + field.~setterName + "(" + field.codeType + " " + field.codeName + ") {");
        println("        this." + field.codeName + " = " + field.codeName + ";");
        println("    }");
        println();
        println("    public " + field.codeType + " " + field.~getterName + "() {");
        println("        return this." + field.codeName + ";");
        println("    }");
        println();
    }
    %>
}